{template 'admin','header'}
<table class="table_list">
 <caption>搜索数据源配置管理列表</caption>
 <tr>
	 <th width="80" class="align_c">配置编号</th>
	 <th class="align_c">配置名称</th>
	 <th width="200" class="align_c">操作</th>
 </tr>
 {loop $list $conf}
 <tr>
	 <td width="80" class="align_c">{$conf['scid']}</td>
	 <td class="align_c">{$conf['scname']}</td>
	 <td width="200" class="align_c">
	 	{if check_perms('sc003')===true}<a href="{$self_url}?action=edit&scid={$conf['scid']}&forward={$forward}">修改配置</a> | {/if}
	 	{if $conf['status']==0}{if check_perms('sc005')===true}<a href="javascript:my_request('{$self_url}?action=status&status=1&scid={$conf['scid']}&forward={$forward}','确认要启用这项配置吗？')">启用配置</a>{else}<font color="Gray">启用配置</font>{/if}
	 	{else}{if check_perms('sc006')===true}<a href="javascript:my_request('{$self_url}?action=status&status=0&scid={$conf['scid']}&forward={$forward}','确认要禁用此项配置吗？')">禁用配置</a>{else}<font color="Gray">禁用配置{/if}{/if} | 
	 	{if check_perms('sc004')===true}<a href="javascript:my_request('{$self_url}?action=del&scid={$conf['scid']}&forward={$forward}','确认要删除此项配置吗？')">删除配置</a>{/if}
	 </td>
 </tr>
 {/loop}
</table>
<div class="button_box">
{if check_perms('sc002')===true}
<input type="button" value=" 添加配置 " onclick="self.location='{$self_url}?action=add&forward={$forward}'" class="button_style">
{/if}
</div>
{template 'admin','footer'}